import java.util.Scanner;
public class Text2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数");
        int a = sc.nextInt();
        System.out.println("请输入第二个数");
        int b = sc.nextInt();
        System.out.println("请输入第三个数");
        int c = sc.nextInt();
        int x = a+b+c;
        int y = x /3;
        System.out.println("已知三个数的合是"+x);
        System.out.println("已知三个数的平均值是"+y);
    }
}
